package com.wugh.fast.kernel.core.exception;

import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;

/**
 * 说明: fast工具的未处理异常
 * <pre>
 *     fast框架封装时补货异常 {@link FastExceptionEnum#FAST_GLOBAL_EXCEPTION}
 * </pre>
 *
 * @author wugh
 * @date 2019-01-24 16:56
 */
public class FastGlobalException extends FastAbstractException {
    public FastGlobalException() {
    }

    public FastGlobalException(String message) {
        super(message);
    }

    public FastGlobalException(String message, Throwable cause) {
        super(message, cause);
    }

    public FastGlobalException(Throwable cause) {
        super(cause);
    }

    public FastGlobalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.FAST_GLOBAL_EXCEPTION;
    }
}
